package com.tang.controller;

import com.tang.sys.ResponseResult;
import com.tang.sys.entity.Rightblog;
import com.tang.sys.service.IRightblogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/righttext")
public class BlogRightController {

    @Autowired
    private IRightblogService iRightblogService;


    //获取right的内容
    @GetMapping("/rightlist")
    public ResponseResult getrightlist(@RequestBody Rightblog rightblog){

        return iRightblogService.getrightlist(rightblog);
    }


}
